$NetBSD$

# Respect the environment
--- samtools-1.3/htslib-1.3/Makefile.orig	2016-03-07 07:49:06 UTC
+++ samtools-1.3/htslib-1.3/Makefile
@@ -22,7 +22,7 @@
 # FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
 # DEALINGS IN THE SOFTWARE.
 
-CC     = gcc
+CC     ?= gcc
 AR     = ar
 RANLIB = ranlib
 
